package com.sicnu.startup.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sicnu.startup.entity.Projects;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sicnu.startup.vo.ProjectQueryVO;
import com.sicnu.startup.vo.ProjectVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zr
 * @since 2022-01-08
 */
public interface ProjectsService extends IService<Projects> {
    /**
     * 取出最新的项目
     *
     * @return
     */
    List<Projects> getProjectList();

    /**
     * 分页带条件查询项目
     *
     * @param projectsPage
     * @param projectQueryVO
     */
    void getProjectCondition(Page<Projects> projectsPage, ProjectQueryVO projectQueryVO);

    /**
     * 添加项目
     *
     * @param projectVO
     * @return
     */
    boolean saveProject(ProjectVO projectVO);

}
